package com.imooc.pan.storage.engine.local.config;

import com.imooc.pan.core.utils.FileUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.File;

/**
 *
 */
@Component
@ConfigurationProperties(prefix = "com.imooc.pan.storage.engine.local")
@Data
public class LocalStorageEngineConfig {
    private String rootFilePath = FileUtils.generateDefaultStoreFileRealPath();

    private String rootFileChunkPath = FileUtils.generateDefaultStoreFileChunkRealPath();
}
